﻿#include <QApplication>
#include <QDir>
#include <QDebug>
#include <mymainwindow.h>

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    QDir::setCurrent(app.applicationDirPath());

    MyMainWindow mainWindow;
    mainWindow.show();

//    QQuickView view;
//    view.rootContext()->setContextProperty("MyListen", &MyListen::instance());
//    view.rootContext()->setContextProperty("view", &view);
//    view.rootContext()->setContextProperty("currentPath", QDir::currentPath());

//    view.setSource((QStringLiteral("qrc:/main.qml")));
//    view.setClearBeforeRendering(true);
//    view.setColor(QColor(Qt::transparent));
//    view.setFlags(Qt::FramelessWindowHint | Qt::WindowStaysOnTopHint | Qt::WindowDoesNotAcceptFocus);
//    view.show();

    return app.exec();
}
